﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HA.ModFlow.Infrastructure
{
    [Serializable]
   public class SPData
    {


        //public SPData()
        //{
 
        //}

        public SPData(int periods)
        {
            this._nPeriods = periods;

            for (int i = 0; i < periods; i++)
            {
                this._lstValue.Add(0);

               
                
            }


        }


        bool _isMulti = false;

        /// <summary>
        /// 表示是否需要输入多个应力期值，而不是用但一值表示
        /// </summary>
        public bool IsMulti
        {
            get { return _isMulti; }
            set { _isMulti = value; }
        }



        /// <summary>
        /// 是否是处于多应力期状态
        /// </summary>
        public bool IsMultiSP
        {
            get {

                if (this._nPeriods > 1)
                {
                    return true;

                }

                else
                {
                    return false;
                }
            
            
            }
        }

        int _nPeriods;

        public int NPeriods
        {
            get { return _nPeriods; }
            set { _nPeriods = value; }
        }

        List<double> _lstValue = new List<double>();

        public List<double> LstValue
        {
            get { return _lstValue; }
            set { _lstValue = value; }
        }

        double _value;

        public double Value
        {
            get { return _value; }
            set { _value = value; }
        }

    }
}
